Sleep and pulmonary physiologic measurements